package DBLayer;
import static org.junit.Assert.*;
import ModelLayer.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;

public class DBCityTest {
	private DBCity dbCityObj;
	@Before
	public void setUp() throws Exception {
		setDbCity(new DBCity());
	}
	private void setDbCity(DBCity dbCityObj) {
		this.dbCityObj = dbCityObj;		
	}
	@After
	public void tearDown() throws Exception {
	}

	@Test
	public void testDBCity() {
		fail("Not yet implemented");
	}

	@Test
	public void testFindCity() {
		City cityObj = dbCityObj.findCity(9900,false);
		if(cityObj != null)
	{
	  System.out.println("City  " + cityObj.getZipCode()+". "+ cityObj.getCityName());
	}
	else{
		fail("City not found");
	}
	}

}
